<!--
 * @Description: 
 * @Author: jun.wu
 * @Date: 2022-12-05 13:51:00
 * @LastEditors: jun.wu
 * @LastEditTime: 2022-12-05 14:09:23
-->
<template>
  <div>
    <svg-icon
      icon-class="fullscreen"
      style="color: #fff; width: 20px; height: 20px"
      @click="changeScreen"
    ></svg-icon>
  </div>
</template>

<script>
// import ScreenFull from "screenfull";
export default {
  methods: {
    changeScreen() {
      // 原生方式
      document.documentElement.requestFullscreen();
      //   if (!ScreenFull.isEnabled) {
      //     this.$message.warning("当前全屏不可用");
      //     return;
      //   }
      //   ScreenFull.toggle(); //全屏的方法（既可以全屏，也能退出来）
    },
  },
};
</script>

<style></style>
